<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>v-model</title>
		<script src="../js/vuejs-2.5.16.js"></script>
	</head>
	<body>
		<div id="app">
			<form action="" method="post">
				用户名：<input type="text" name="username" v-bind:value="massage"><br/>
				密码：<input type="text" name="password"  :value="user.password" ><br/>
			</form>

				<hr/>
			<input type="text" v-model="user.username">
			<div>{{user.username}}</div>
			<div>{{massage}}</div>
		</div>
	</body>
	<script>
		//view model
		new Vue({
			el:"#app",
			data:{
				massage:"hello123",
				user:{
				    username:"test123",
					password:"1234"
				}
			}
		})
	</script>
</html>
